package com.zwq.wxpay.sdk;

import java.util.HashMap;
import java.util.Map;

public class Test {

    public static void main(String[] args) throws Exception {
//        System.out.println(WXPayUtil.MD5("abcd"));
//        System.out.println(WXPayUtil.HMACSHA256("appid=wx862770dd69b7c1ba&bank_type=PAB_CREDIT&cash_fee=1&fee_type=CNY&is_subscribe=N&mch_id=1607425554&nonce_str=QzNtW0YUEwAxUw9BrRkPGdW39WYCME4v&openid=oXRke5Fsd-nBHBmjyjaUOsWozqw&out_trade_no=xytx_202100000000000012&result_code=SUCCESS&return_code=SUCCESS&sign_type=HMACSHA256&time_end=20210321153038&total_fee=1&trade_type=NATIVE&transaction_id=4200000995202103215506114223&key=psUpgpFmNX6K7AmKoYx0VMn4rE3jZS4c", "dWO0HsMaSti6Yve1z831cHw7yQK5TpA9"));
        System.out.println(WXPayUtil.HMACSHA256("appid=wx862770dd69b7c1ba&bank_type=PAB_CREDIT&cash_fee=1&fee_type=CNY&is_subscribe=N&mch_id=1607425554&nonce_str=QzNtW0YUEwAxUw9BrRkPGdW39WYCME4v&openid=oXRke5Fsd-nBHBmjyjaUOsWozq-w&out_trade_no=xytx_202100000000000012&result_code=SUCCESS&return_code=SUCCESS&time_end=20210321153038&total_fee=1&trade_type=NATIVE&transaction_id=4200000995202103215506114223&key=psUpgpFmNX6K7AmKoYx0VMn4rE3jZS4c", "psUpgpFmNX6K7AmKoYx0VMn4rE3jZS4c"));
//        Map a = new HashMap();
//        a.put("a", "a");
//        System.out.println("aaaaaaaaaa : " + a.get("a"));
//        System.out.println("bbbbbbbbbb : " + a.get("b"));
    }
}
